home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 February / Macworld (1999-02).dmg / Games World / Hot Demos! / DroidWorks demo / dwCD.gob / mission_cog_00_deathfloor.cog < prev    next >
Text File  |  1998-09-17  |  847b  |  41 lines

  1. # Jedi Knight Cog Script
  2. #
  3. # 00_deathfloor.cog
  4. #
  5. # This script creates a surface that kills anything that touches is
  6. #
  7. # [IS]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13. surface        surf0        mask=0x404
  14. surface        surf1        mask=0x404
  15. surface        surf2        mask=0x404
  16. surface        surf3        mask=0x404
  17. surface        surf4        mask=0x404
  18. surface        surf5        mask=0x404
  19. surface        surf6        mask=0x404
  20. surface        surf7        mask=0x404
  21. surface        surf8        mask=0x404
  22.  
  23. message        touched        
  24. message        entered
  25.  
  26. int            victim    local
  27.  
  28. end
  29.  
  30. # ========================================================================================
  31.  
  32. ## Code Section
  33. code
  34. touched:
  35. entered:
  36.     victim = getsourceref();
  37.     DamageThing(victim, 1000.0, 0x1, victim);
  38.     return;
  39. end
  40.  
  41.